<!DOCTYPE html>
<html lang="zh-cn">
	<head>
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta charset="UTF-8">
	    <title>头像切图</title>
	    <link rel="icon" type="image/x-icon" href="${cxt}images/favicon.ico">
	    <meta name="viewport" content="width=device-width, initial-scale=1">
	    <meta name="Keywords" content="头像切图"/>
	    <meta name="description" content="头像切图"/>
	    <script type="text/javascript">window["webRoot"]="${cxt}";</script>
	    <link rel="stylesheet" href="${cxt}art-dialog/css/ui-dialog.css"  type="text/css">
	    <script type="text/javascript" src="${cxt}jquery/dist/jquery.min.js"></script>
	    <script type="text/javascript" src="${cxt}art-dialog/js/dialog-min.js"></script>
	    <script type="text/javascript" src="${cxt}upload/util/fileupload.js"></script>
    	<script type="text/javascript" src="${cxt}upload/util/image.cut.js"></script>
	</head>
	<body>
		<script type="text/javascript">
			var image = null;
			$(function(){
				image = $("#Button1").imageSwfCut(settings);
			});
		
			function backdata(data) {
				document.getElementById('avatar_priview').innerHTML = "头像信息 : "+ data;
			}
			var settings={callback:backdata};
			function show1() {
				image.openDialog();
			}
		</script>
		 <input id="Button1" type="button" onclick="show1()" value="上传截图" /> 
  		<div id="avatar_priview"></div>
	</body>
</html>